<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script type="text/javascript">
function topage(page){
	var form = document.forms[0];
	form.page.value=page;
	form.submit();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<html:form action="/cms/auditHistory.do" method="post">
<html:hidden property="method" value="list"/>
<html:hidden property="page"/>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
  	<tr><td colspan="5" bgcolor="#ffbe26" align="right">
    	<%@ include file="../share/fenye.jsp" %>
    </td></tr>
    <tr>
      <td width="15%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">操作人员</font></div></td>
      <td width="20%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">操作时间</font></div></td>
      <td width="10%" bgcolor="#ffbe26"> <div align="center"><font color="#000000">对象类型</font></div></td>
      <td width="25%" nowrap bgcolor="#ffbe26"> <div align="center"><font color="#000000">对象</font></div></td>
      <td width="30%" nowrap bgcolor="#ffbe26"> <div align="center"><font color="#000000">动作</font></div></td>
    </tr>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="entry">
	
    <tr>
      <td bgcolor="f5f5f5"><div align="center">${entry.employee.username}</div></td>
      <td bgcolor="f5f5f5"><div align="center">${entry.ts}</div></td>
      <td bgcolor="f5f5f5"><div align="center"><bean:message key="info.${entry.objType}.name"/></div></td>
      <td bgcolor="f5f5f5"><div align="center">
      <c:if test="${entry.objType eq 'building'}"><a href="<html:rewrite action="/cms/house/building"/>?method=editUI&buildingId=${entry.objId}&type=Base">${entry.building.name}</a></c:if>
      <c:if test="${entry.objType eq 'house'}"><a href="<html:rewrite action="/cms/house"/>?method=editUI&houseId=${entry.objId}&type=Base">${entry.house.title}</a></c:if>
      <c:if test="${entry.objType eq 'news'}"><a href="<html:rewrite action="/cms/news/newsManage"/>?method=editUI&newsId=${entry.objId}">${entry.news.title}</a></c:if>
      </div></td>
      <td bgcolor="f5f5f5"><div align="center">
      <bean:message key="info.${entry.objType}.status.${entry.fromStatus}"/>
      &nbsp;&gt;&gt;&nbsp;
      <bean:message key="info.${entry.objType}.status.${entry.toStatus}"/>
      </div></td>
	</tr>
</c:forEach>
    <!----------------------LOOP END------------------------------->
  </table>
</html:form>
</body>
</html>